﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InChatter.Client.WPFClient.Utility
{
    public class MessageCategory : INotifyPropertyChanged
    {
        /// <summary>
        /// 人员项，依次为参考
        /// </summary>
        public string Id { set; get; }
        /// <summary>
        /// 类型
        /// </summary>
        public string Type { set; get; }
        private string _CategoryName;
        public string CategoryName
        {
            get { return _CategoryName; }
            set
            {
                _CategoryName = value;
                OnPropertyChanged("CategoryName");
            }
        }

        private int _Count;
        public int Count
        {
            get { return _Count; }
            set
            {
                _Count = value;
                OnPropertyChanged("Count");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        public void OnPropertyChanged(string name)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged(this, new PropertyChangedEventArgs(name));
        }

        public MessageCategory()
        {
            Count = 0;
        }
    }
}
